package org.itcast.travel.mapper;


import java.util.List;

import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;

import org.itcast.travel.pojo.Race;
import org.itcast.travel.pojo.RaceQueryParam;


@Mapper
public interface RaceMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Race race);

    Race selectByPrimaryKey(Integer id);

    List<Race> selectAll();

    int updateByPrimaryKey(Race record);


    Page<Race> page(RaceQueryParam raceQueryParam);

    void deleteVotesByRaceId(Integer raceId);

    void updateVotes(Integer raceId);


}